package com.example;

import com.avos.avoscloud.AVOSCloud;
import com.example.option.Option1;
import com.example.tools.CommonUtils;

public class MyApplication {


    public MyApplication() {
        init();
    }

    private void init() {
        // 参数依次为 AppId、AppKey、MasterKey
        AVOSCloud.initialize("XUIz11ilfr4FuiBBmwxUEUOd-gzGzoHsz", "wdHEQAWXFp3GvuABian1GT26", "UfpLi1Gu0MHT1uxysmmEw5Od");
    }

    public void run() {
//        Option2 option2 = new Option2();
//        try {
//            option2.run();
//        } catch (AVException e) {
//            e.printStackTrace();
//        }

        try {
            Option1 option1 = new Option1();
            option1.parseAllPage();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    public static void main(String[] args) {
//        CommonUtils.log("程序启动了=============================================");
//        MyApplication myApplication = new MyApplication();
//        myApplication.run();
//        CommonUtils.log("程序结束了=============================================");
        int n=281;
        int[] primes={89,449,499,79,457,311,281,181,271,419,379,347,131};

        int[] resultArr=new int[n];
        resultArr[0]=1;
        int count=1;
        int test=0;
        while(count<n){
            int min=Integer.MAX_VALUE;
            for(int i=0;i<primes.length;i++){
                for(int j=0;j<resultArr.length;j++){
                    if(resultArr[j]!=0 && primes[i]*resultArr[j]>resultArr[count-1]){
                        if(min>(primes[i]*resultArr[j])){
                            min=(primes[i]*resultArr[j]);

                            test=primes[i];
                        }
                    }
                }
            }
            resultArr[count]=min;

            count++;
        }
        for(int i=0;i<resultArr.length;i++){
            System.out.println(resultArr[i]);
        }
    }
}
